﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Quaack
{
    public partial class QuaackMasterSiteLoggedIn : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var userName = HttpContext.Current.User.Identity.Name;
            logOutLink.InnerText = "LOG OUT:" + Environment.NewLine + userName;
            //logOutLink.InnerText.
        }

        protected void LogOut(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            FormsAuthentication.RedirectToLoginPage();
        }
    }
}